#ifndef MYPLANE_H
#define MYPLANE_H
#include<QPixmap>
#include<QRect>
#include "bullet.h"
class myplane
{
public:
    myplane();
    //发射导弹
    void shoot();
    //飞机位置
    void setPosition(int x,int y);
    //飞机资源对象
    QPixmap m_plane;
    //飞机坐标
    int m_x;
    int m_y;
    //飞机的矩形边框
    QRect m_Rect;
    //弹夹
    bullet m_bullets[BULLET_MY_NUM];
    //间隔记录
    int  m_recorder=0;
    //三行子弹//
    int m_bulletSpacing=10;
};

#endif // MYPLANE_H
